import * as service from '../service/block';

const UserModel = {
  namespace: 'block',
  state: {
    blockList: [],
  },
  effects: {
    *getRequest(_, { call }) {
      const response = yield call(service.requestApi);
      return response;
    },
  },
  reducers: {
    updateState(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
export default UserModel;
